Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.dam.urlservice

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.dam.urlservice">

  <extension
    target="org.nuxeo.ecm.platform.url.service.DocumentViewCodecService"
    point="codecs">

    <documentViewCodec name="docpathdam" enabled="true" default="false"
      prefix="nxdam"
      class="org.nuxeo.dam.codec.DamCodec" />

  </extension>

  <extension target="org.nuxeo.ecm.platform.ui.web.rest.URLService"
    point="urlpatterns">

    <urlPattern name="dam" enabled="true">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpathdam</codecName>
      <actionBinding>
        #{damSearchActions.loadPermanentLink}
      </actionBinding>
      <documentViewBindingApplies>
        #{mainTabsActions.isOnMainTab('dam')}
      </documentViewBindingApplies>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.getNewDocumentView(null)}
      </newDocumentViewBinding>
      <bindings>
        <binding name="tabIds">#{damActions.damMainTab}</binding>
        <binding name="language" callGetter="false">
          #{restHelper.localeString}
        </binding>
        <binding name="contentViewName" callGetter="true">
          #{damSearchActions.currentContentViewName}
        </binding>
        <binding name="currentPage" callGetter="true">
          #{damSearchActions.currentPage}
        </binding>
        <binding name="pageSize" callGetter="true">
          #{damSearchActions.pageSize}
        </binding>
        <binding name="state" callGetter="false">
          #{damSearchActions.state}
        </binding>
      </bindings>
    </urlPattern>

  </extension>

</component>